def generator01(func):
    def wrapper(*args, **kwargs):
        print("generator01前搞了一下")
        result = func(*args, **kwargs)
        print("generator01后搞了一下")
        return result

    return wrapper


def generator02(func):
    def wrapper(*args, **kwargs):
        print("generator02前搞一下")
        result = func(*args, **kwargs)
        print("generator02后搞一下")
        return result

    return wrapper


@generator02
@generator01
def reat(word):
    print(f"{word}下的单词: great treat treaty threat treatment entreat retreat maltreat")


if __name__ == '__main__':
    reat("reat")
